<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<meta name="csrf-token" content="{{ csrf_token()}}">
<script type="text/javascript">
    window.onload = function () {
        var start_date = <?php echo json_encode($start_date);?>;
        $('#xc_date').val(start_date);
    }
    function get_xc_data(value){
        window.location.href = "/admin/handle_entrance?date="+value;
    }
</script>
<div>
    <div>
        <a href="/admin" class="btn btn-primary btn-lg active" role="button" style="margin-bottom: 10px;"><首页</a>
    </div>
    <div class="col-xs-12" style="margin-bottom: 20px;">
        <input class="form-control" type="date" name="xc_date" id="xc_date" onchange="get_xc_data(this.value)">
    </div>
    <div>
        <div class="col-xs-4">
                <span style="font-size: 20px;font-weight: bolder;padding-left: 8px;">{{$faxian}}</span><br>
                <span style="font-size: 14px;">发现</span>  
        </div>
        <div class="col-xs-4">
                <span style="font-size: 20px;font-weight: bolder;padding-left: 14px;">{{$done}}</span><br>
                <span style="font-size: 14px;">已处理</span>
        </div>
        <div class="col-xs-4">
                <span style="font-size: 20px;font-weight: bolder;padding-left: 14px;">{{$todo}}</span><br>
                <span style="font-size: 14px;">未处理</span>
        </div>
    </div>
    <div class="col-xs-12" style="margin-top: 50px;text-align: center;">
         <p style="color: red;">
            以下数字代表各部门累积目前待解决的问题数量（包括长期问题）
        </p>
    </div>
    <div>
        @foreach($dep as $key => $value)
        <div class="col-xs-6" style="margin-top: 20px;text-align: center;">
            <a href="to_handle_ques?dep={{$key}}&ques_status=all" class="btn btn-primary" style="width: 100px;">
                 <span style="font-size: 20px;font-weight: bolder;padding-left: 3px;text-align: center;">{{$dep_todo_ques[$key]}}</span><br>
                <span style="font-size: 14px;">{{$value}}</span>
            </a>
        </div>
        @endforeach
    </div>
    <div class="col-xs-12" style="text-align: center;margin-top: 60px;">
        <a href="all_ques_list">查看所有问题列表</a>
    </div>
</div>
